package com.ruoyi.travel.dubbo;

import com.ruoyi.travel.RemoteWechatService;
import com.ruoyi.travel.api.domain.WechatUser;
import com.ruoyi.travel.mapper.WechatUserMapper;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import java.util.List;

@RequiredArgsConstructor
@Service
@DubboService
public class RemoteWechatServiceImpl implements RemoteWechatService {

    private final WechatUserMapper wechatUserMapper;

    @Override
    public List<WechatUser> all() {
        return wechatUserMapper.selectList();
    }
}
